package hn.cch.model;

import java.io.Serializable;

/**
 * 玩法
 */
public class Play implements Serializable {

    private String playId;
    private String playName;

    private String playType;//0|1
    private String playStatus;//0|1

    public String getPlayId() {
        return playId;
    }

    public void setPlayId(String playId) {
        this.playId = playId;
    }

    public String getPlayName() {
        return playName;
    }

    public void setPlayName(String playName) {
        this.playName = playName;
    }

    public String getPlayType() {
        return playType;
    }

    public void setPlayType(String playType) {
        this.playType = playType;
    }

    public String getPlayStatus() {
        return playStatus;
    }

    public void setPlayStatus(String playStatus) {
        this.playStatus = playStatus;
    }

    @Override
    public String toString() {
        return "Play{" +
                "playId='" + playId + '\'' +
                ", playName='" + playName + '\'' +
                ", playType='" + playType + '\'' +
                ", playStatus='" + playStatus + '\'' +
                '}';
    }

    public boolean isType(){
        if (this.playType.equals("0")){
            return false;
        }else {
            return true;
        }
    }

    public boolean isStatus(){
        if (this.playStatus.equals("0")){
            return false;
        }else {
            return true;
        }
    }

}
